﻿<%@ Page Title="" Language="VB" MasterPageFile="~/naija.Master" AutoEventWireup="false" CodeFile="GetStyleByUser.aspx.vb" Inherits="GetStyleByUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="Container">
    <div id="LeftHorizantalDetails">
    <div class="UserImage">
        </div>
    <div class="LeftAdvert"></div>
    </div>
    <div id="MainContentDetails"> 
        <div class="TopCaptioning">
            Uploaded Syles</div>
        <p>
            <asp:ListView ID="ListView1" runat="server" DataSourceID="Style" 
                EnableModelValidation="True" GroupItemCount="3">
                <AlternatingItemTemplate>
                    <td id="Td1" runat="server" style="">
                       <a href='<%# "StyleComment.aspx?ID=" &Cstr( Eval("ID"))%>'>
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ProfileImage") %>' Height="238px" Width="198px"  /></a>
                       <div class="PicTitle"> 
                        <asp:Label ID="PicTitleLabel" runat="server" Text='<%# Eval("PicTitle") %>' /></div>
                      <div class="StyleDate"><asp:Label ID="TodayDateLabel" runat="server" Text='<%# Eval("TodayDate") %>' /></div>
                       <div class="Comment"><asp:Label ID="Label2" runat="server" Text='<%# Eval("Description") %>' /></div>
                       <div class="StyleUserName"><asp:Label ID="UserNameLabel" runat="server" Text='<%# Eval("UserName") %>' /></div>
                        <div class="StyleUserName"> Category: <a href='<%# "StyleByCategory.aspx?CatName=" &Cstr( Eval("CatName"))%>'><asp:Label ID="CatNameLabel" runat="server" Text='<%# Eval("CatName") %>' /></a></div>
                       <div class="StyleUserName">  Style: <a href='<%# "StyleByStyle.aspx?StyleName=" &Cstr( Eval("StyleName"))%>'><asp:Label ID="StyleNameLabel" runat="server" Text='<%# Eval("StyleName") %>' /></a></div>
                       <div class="StyleUserName">  Ethnic: <a href='<%# "StyleByEthic.aspx?EthnicName=" &Cstr( Eval("EthnicName"))%>'><asp:Label ID="EthnicNameLabel" runat="server" Text='<%# Eval("EthnicName") %>' /></a></div>
                       <div class="StyleUserName">  Gender: <a href='<%# "StyleByGender.aspx?GenderName=" &Cstr( Eval("GenderName"))%>'><asp:Label ID="GenderNameLabel" runat="server" Text='<%# Eval("GenderName") %>' /></a></div>
                            <a href='<%# "StyleComment.aspx?ID=" &Cstr( Eval("ID"))%>'><em>Comment</em></a>
                                            
                    </td>
                </AlternatingItemTemplate>
                
                <EmptyDataTemplate>
                    <table id="Table1" runat="server" style="">
                        <tr>
                            <td>
                                No data was returned.</td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <EmptyItemTemplate>
<td id="Td1" runat="server" />
                </EmptyItemTemplate>
                <GroupTemplate>
                    <tr ID="itemPlaceholderContainer" runat="server">
                        <td ID="itemPlaceholder" runat="server">
                        </td>
                    </tr>
                </GroupTemplate>
                
                <ItemTemplate>
                    <td id="Td2" runat="server" style="">
                       <a href='<%# "StyleComment.aspx?ID=" &Cstr( Eval("ID"))%>'>
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ProfileImage") %>' Height="238px" Width="198px"  /></a>
                       <div class="PicTitle"> 
                        <asp:Label ID="PicTitleLabel" runat="server" Text='<%# Eval("PicTitle") %>' /></div>
                        <div class="StyleDate"><asp:Label ID="Label1" runat="server" Text='<%# Eval("TodayDate") %>' /></div>
                      <div class="Comment"><asp:Label ID="TodayDateLabel" runat="server" Text='<%# Eval("Description") %>' /></div>
                       <div class="StyleUserName">  <asp:Label ID="UserNameLabel" runat="server" Text='<%# Eval("UserName") %>' /></div>
                       <div class="StyleUserName"> Category: <a href='<%# "StyleByCategory.aspx?CatName=" &Cstr( Eval("CatName"))%>'><asp:Label ID="CatNameLabel" runat="server" Text='<%# Eval("CatName") %>' /></a></div>
                       <div class="StyleUserName">  Style: <a href='<%# "StyleByStyle.aspx?StyleName=" &Cstr( Eval("StyleName"))%>'><asp:Label ID="StyleNameLabel" runat="server" Text='<%# Eval("StyleName") %>' /></a></div>
                       <div class="StyleUserName">  Ethnic: <a href='<%# "StyleByEthic.aspx?EthnicName=" &Cstr( Eval("EthnicName"))%>'><asp:Label ID="EthnicNameLabel" runat="server" Text='<%# Eval("EthnicName") %>' /></a></div>
                       <div class="StyleUserName">  Gender: <a href='<%# "StyleByGender.aspx?GenderName=" &Cstr( Eval("GenderName"))%>'><asp:Label ID="GenderNameLabel" runat="server" Text='<%# Eval("GenderName") %>' /></a></div>
                           <a href='<%# "StyleComment.aspx?ID=" &Cstr( Eval("ID"))%>'><em>Comment</em></a>
                                            
                    </td>
                </ItemTemplate>
                <LayoutTemplate>
                    <table id="Table2" runat="server">
                        <tr id="Tr1" runat="server">
                            <td id="Td3" runat="server">
                                <table ID="groupPlaceholderContainer" runat="server" border="0" style="">
                                    <tr ID="groupPlaceholder" runat="server">
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr id="Tr2" runat="server">
                            <td id="Td4" runat="server" style="">
                                <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                    <Fields>
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                            ShowLastPageButton="True" />
                                    </Fields>
                                </asp:DataPager>
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
                
            </asp:ListView>
            <asp:SqlDataSource ID="Style" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                
                
                SelectCommand="SELECT [UserName], [ProfileImage], [PicTitle], [TodayDate], [Description], [CatName], [StyleName], [EthnicName], [GenderName], [ID] FROM [UploadedStyleWithNames] WHERE ([UserName] = ?)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="UserName" QueryStringField="UserName" 
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
        </p>
    </div>
      </div>
</asp:Content>

